const mongoose=require("mongoose")

let schema = new mongoose.Schema({
        name:{
            type:String,
            require:true
        },
        url:{
            type:String,
            require: true
        }
    },
    {
        timestamps: {
            createdAt: 'created',
            updatedAt: 'updated'
        }
    }
);

let model =mongoose.model("links",schema);
module.exports = model;